package com.ruan.service;

import com.ruan.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.entity.R;

import java.util.List;

/**
* @author 59499
* @description 针对表【category】的数据库操作Service
* @createDate 2023-09-08 14:38:30
*/
public interface CategoryService extends IService<Category> {

    R<Void> addCategory(Category category);

    R<List<Category>> getCategoryList();

    R<Void> editCategory(String id, String name);

    R<Void> disableCategoryById(Integer id);

    R<Void> enableCategoryById(Integer id);

    R<List<Category>> getAllCategoryList();
}
